<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	</head>
	<body>
		<!-- 问卷头部 -->
		<div class="widget-box">
			<!-- 问卷设计区 -->
			<div class="widget-content">
				
				<div class="alert alert-block">
					<div class="error_ex">
						<h4 class="alert-heading">
							<s:text name="name"></s:text>
						</h4>
					</div>
				</div>
				<div class="alert  alert-success alert-block">
					<s:text name="preface"></s:text>
				</div>
			
				<div class="alert  alert-info alert-block" style="margin-top: 0px;">
					<strong>问卷回答区</strong>
					<div class="todo top-black">
						<ul id="survey_view">
							<s:iterator value="questionList" id="q" status="question">
								<li class="clearfix">
								<div class="txt top5" style="width:100%">
									<span style='font-weight:bold;font-size:15px;'>${question.index+1}、${q.name}</span>
									<s:if test="#q.required == 0"><font color="red">(必答题)</font></s:if>	
								</div>
									<br/>
									<div class="txt top5" style="width:100%">
										<s:iterator value="#q.optionList" id="o" status="option">
											<label style="padding-left: 20px;">
												
												<s:if test="#q.styleId == 1">
													<input type="radio" name="${q.id}"  style="margin:0px 5px" value="${o.id}" />
													${o.name}${o.content}
												</s:if>
												<s:if test="#q.styleId == 2">
													<input type="checkbox" name="${q.id}" style="margin:0px 5px" value="${o.id}" />
													${o.name}${o.content}
												</s:if>
											</label>
										</s:iterator>
											<s:if test="#q.styleId == 3">
												<s:textarea name="%{#q.id}" cssStyle="width: 90%; height: 100px; margin: 10px 10px 10px;"></s:textarea>
											</s:if>
									</div>
								</li>
							</s:iterator>
						</ul>
					</div>
				</div>
				
				<div class="alert  alert-success alert-block">
					<s:text name="afterword"></s:text>
				</div>
			</div>
		</div>
	</body>
		<link rel="stylesheet" href="<%=request.getContextPath()%>/css/bootstrap.min.css" />
		<link rel="stylesheet" href="<%=request.getContextPath()%>/css/matrix-style.css" />
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/comm/json2.js"></script>
</html>
